// Copyright (C) 2010 Johan Rende.

//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.

//	Official SVN repository and contact information can be found at
//	https://code.google.com/p/lt-engine/

package jwjgl;

import java.awt.Rectangle;

import org.lwjgl.opengl.GL11;

public class Platform {
//	public int x,y = 0;
//	public int length = 0;
//	public int height = 60;
//	public Rect plat;
	public Rectangle rect;
	
	public Platform(int x0, int y0, int length0){
		rect = new Rectangle();
		rect.x = x0;
		rect.y = y0;
		rect.width = length0*60;
		rect.height = 60;
//		Main.numOfPlat++;
	}
	public void Draw(){
		GL11.glPushMatrix();
		GL11.glTranslatef(rect.x, rect.y, 0);
//		GL11.glBindTexture(GL11.GL_TEXTURE_2D, Textures.texplatint);
		DrawObj.drawRect(rect.width);
		GL11.glPopMatrix();
	}
}
